package icu.sehnen.service;

import icu.sehnen.dao.MemberDao;
import icu.sehnen.model.MemberModel;

import java.util.ArrayList;
import java.util.List;

public class MemberService {


    public List<MemberModel> getMemberListForAbout() {

        MemberDao memberDao=new MemberDao();
        List<MemberModel> memberModelList=new ArrayList<>();
        Integer length=memberDao.content.size();
        for(int i=0;i<length;i++){
            MemberModel memberModel=new MemberModel();
            memberModel.setDate(memberDao.date.get(i));
            memberModel.setContent(memberDao.content.get(i));
            memberModel.setImgUrl(memberDao.imgUrls.get(i));
            memberModelList.add(memberModel);
        }
        return  memberModelList;


    }


}
